package com.guangzhi.weijianzhi.activity;

import cn.jpush.android.api.InstrumentedActivity;
import android.content.Intent;
import android.content.SharedPreferences;
import android.os.Bundle;
import android.view.Window;
import android.view.WindowManager;

public class WelcomeActivity extends InstrumentedActivity {
	public static boolean isForeground = false;
	public static final String MESSAGE_RECEIVED_ACTION = "com.example.jpushdemo.MESSAGE_RECEIVED_ACTION";
	public static final String KEY_TITLE = "title";
	public static final String KEY_MESSAGE = "message";
	public static final String KEY_EXTRAS = "extras";
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onCreate(savedInstanceState);
		SharedPreferences sp = getSharedPreferences("isfrist", 0);
		if(sp.getBoolean("is_first", false)){
			startActivity(new Intent(this,GuiDeUiTwoActivity.class));
			finish();
		}else{
			sp.edit().putBoolean("is_first", true).commit();
			startActivity(new Intent(this,GuiDeUiActivity.class));
			finish();
		}
	}
}
